package com.unity3d.dababinding;

import androidx.databinding.BaseObservable;

public class Person extends BaseObservable

{
    public String name;
    public int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        //刷新值
        notifyChange();
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
